package com.huoyun.announcement.dao;

import java.util.List;

import com.huoyun.announcement.bean.Announcement;
import com.huoyun.announcement.dao.evt.QueryAnnoucemnetPageEvt;
import com.huoyun.announcement.dao.evt.GetOpenedAnnouncementPageEvt;
import com.huoyun.base.dao.BaseDao;

public interface AnnouncementDao extends BaseDao<Announcement> {
	
	public void saveAnnoucement(Announcement announcement);
	
	public void update(Announcement announcement);
	
	public List<Announcement> queryAnnoucement(String groupName);
	
	public List<Announcement> queryAll();
	
	public Announcement getAnnouncementById(long annId);
	
	public List<Announcement> getOpenedAnnouncementPage(GetOpenedAnnouncementPageEvt getOpenedAnnouncementPageEvt);
	
	public long queryAnnoucemnetCount(QueryAnnoucemnetPageEvt queryAnnoucemnetPageEvt);
	
	public long getOpenedAnnouncementCount(GetOpenedAnnouncementPageEvt getOpenedAnnouncementPageEvt);
	
	public List<Announcement> queryAnnoucemnetPage(QueryAnnoucemnetPageEvt queryAnnoucemnetPageEvt);
	
	public void delete(long id);

}
